﻿using B.S.BaseData.ErrorCode;
using MediatR;

namespace B.S.BaseData.Write.Api.Application.Command
{
    public class AddLeaveCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 操作人id
        /// </summary>
        public int OperatorId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string LeaveName { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DepartId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public int LeaveType { get; set; }
        /// <summary>
        /// 请假时间
        /// </summary>
        public DateTime LeaveCreateTime { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public DateTime CoverageTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int TotalHours { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string Cause { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public int DepartmentHeads { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public string Appstatus { get; set; }
    }
}
